<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      libpcap-1.9.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;17.&nbsp;Networking Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="libnsl.html" title="libnsl-1.2.0">Prev</a>
          <p>
            libnsl-1.2.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libpsl.html" title="libpsl-0.21.0">Next</a>
          <p>
            libpsl-0.21.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="netlibs.html" title=
          "Chapter&nbsp;17.&nbsp;Networking Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="libpcap" name="libpcap"></a>libpcap-1.9.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to libpcap
        </h2>
        <p>
          <span class="application">libpcap</span> provides functions for
          user-level packet capture, used in low-level network monitoring.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://www.tcpdump.org/release/libpcap-1.9.1.tar.gz">http://www.tcpdump.org/release/libpcap-1.9.1.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 21af603d9a591c7d96a6457021d84e6c
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 844 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 9.3 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Recommended patch: <a class="ulink" href=
                "http://www.linuxfromscratch.org/patches/blfs/svn/libpcap-1.9.1-enable_bluetooth-1.patch">
                http://www.linuxfromscratch.org/patches/blfs/svn/libpcap-1.9.1-enable_bluetooth-1.patch</a>
                (Needed for bluez-5.21)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          libpcap Dependencies
        </h3>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../general/bluez.html" title=
          "BlueZ-5.54">BlueZ-5.54</a>, <a class="xref" href="libnl.html"
          title="libnl-3.5.0">libnl-3.5.0</a>, <a class="xref" href=
          "../general/libusb.html" title="libusb-1.0.23">libusb-1.0.23</a>,
          Software distribution for the <a class="ulink" href=
          "http://www.endace.com/">DAG</a>, and <a class="ulink" href=
          "http://www.intel.com/">Septel</a> range of passive network
          monitoring cards.
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/libpcap">http://wiki.linuxfromscratch.org/blfs/wiki/libpcap</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of libpcap
        </h2>
        <p>
          Install <span class="application">libpcap</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">patch -Np1 -i ../libpcap-1.9.1-enable_bluetooth-1.patch &amp;&amp;

./configure --prefix=/usr &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          If you want to disable installing the static library, use this sed:
        </p>
        <pre class="userinput">
<kbd class=
"command">sed -i '/INSTALL_DATA.*libpcap.a\|RANLIB.*libpcap.a/ s/^/#/' Makefile</kbd>
</pre>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <code class="option">--enable-bluetooth=no</code>: Necessary, if
          the recommended patch is not applied, because since 1.6.1 this
          application needs a fix, in order to build with <span class=
          "application">bluez-5.21</span>.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">pcap-config</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libpcap.so, libpcap.a (optional)</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/usr/include/pcap</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="pcap-config" name="pcap-config"></a><span class=
                    "term"><span class=
                    "command"><strong>pcap-config</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    provides configuration information for <span class=
                    "application">libpcap</span>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libpcap-lib" name="libpcap-lib"></a><span class=
                    "term"><code class=
                    "filename">libpcap.{a,so}</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    are libraries used for user-level packet capture.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-23 16:46:15 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="libnsl.html" title="libnsl-1.2.0">Prev</a>
          <p>
            libnsl-1.2.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libpsl.html" title="libpsl-0.21.0">Next</a>
          <p>
            libpsl-0.21.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="netlibs.html" title=
          "Chapter&nbsp;17.&nbsp;Networking Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
